home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form IDFORM
- BackColor = &H00FF0000&
- BorderStyle = 0 'None
- ClientHeight = 6810
- ClientLeft = 30
- ClientTop = 450
- ClientWidth = 9600
- Height = 7215
- Left = -30
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 6810
- ScaleWidth = 9600
- Tag = "id"
- Top = 105
- Width = 9720
- Begin AniPushButton AniButton1
- BackColor = &H00FF0000&
- Caption = "Next Page"
- ForeColor = &H00FFFFFF&
- Height = 465
- Index = 0
- Left = 8040
- Picture = IDFORM.FRX:0000
- Speed = 162
- TabIndex = 3
- TextPosition = 2 'Left
- Top = 6240
- Width = 1440
- End
- Begin AniPushButton AniButton2
- BackColor = &H00FFFFFF&
- Height = 480
- Left = 4560
- PictDrawMode = 1 'Autosize control
- Picture = IDFORM.FRX:0EAC
- Speed = 162
- TabIndex = 5
- TextPosition = 2 'Left
- Top = 6240
- Width = 480
- End
- Begin AniPushButton AniButton1
- BackColor = &H00FF0000&
- Caption = "Back Page"
- ForeColor = &H00FFFFFF&
- Height = 465
- Index = 1
- Left = 120
- Picture = IDFORM.FRX:148E
- Speed = 162
- TabIndex = 4
- TextPosition = 1 'Right
- Top = 6240
- Width = 1515
- End
- Begin SSPanel Panel3D1
- Alignment = 6 'Center - TOP
- BackColor = &H00C0C0C0&
- BevelInner = 1 'Inset
- BevelOuter = 0 'None
- BevelWidth = 3
- Caption = "PATIENT IDENTIFICATION"
- Font3D = 3 'Inset w/light shading
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 24
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 6135
- Left = 0
- TabIndex = 6
- Top = 0
- Width = 9735
- Begin SSCheck Check3D1
- Caption = " ENABLE ENTRY CHECKING"
- Font3D = 3 'Inset w/light shading
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 375
- Left = 2880
- TabIndex = 15
- Top = 5520
- Width = 3975
- End
- Begin SSPanel Panel3D2
- Alignment = 6 'Center - TOP
- BackColor = &H00C0C0C0&
- BevelInner = 1 'Inset
- BevelOuter = 0 'None
- BevelWidth = 3
- Caption = "GENDER"
- Font3D = 3 'Inset w/light shading
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 1695
- Left = 2520
- TabIndex = 11
- Top = 3720
- Width = 4455
- Begin SSOption Option3D1
- Caption = "FEMALE"
- Font3D = 0 'None
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 495
- Index = 1
- Left = 2040
- TabIndex = 13
- TabStop = 0 'False
- Top = 960
- Width = 2295
- End
- Begin AniPushButton AniButton4
- BackColor = &H00C0C0C0&
- Cycle = 1 'By frame
- Height = 735
- Left = 360
- Picture = IDFORM.FRX:233A
- TabIndex = 14
- Top = 480
- Width = 855
- End
- Begin SSOption Option3D1
- Caption = "MALE"
- Font3D = 0 'None
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 495
- Index = 0
- Left = 2040
- TabIndex = 12
- TabStop = 0 'False
- Top = 360
- Width = 2295
- End
- End
- Begin Timer Timer2
- Left = 1200
- Top = 3120
- End
- Begin VHedit HEdit1
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 24
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 525
- InflateBottom = 270
- InflateLeft = 270
- InflateRight = 270
- InflateTop = 270
- Left = 7920
- TabIndex = 9
- Top = 2640
- Version = 268435458
- Visible = 0 'False
- Width = 1215
- End
- Begin Timer Timer1
- Left = 1200
- Top = 2520
- End
- Begin SSCommand Command3D1
- Caption = "ENTER ID"
- Font3D = 0 'None
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 975
- Index = 1
- Left = 5280
- Picture = IDFORM.FRX:2C0A
- TabIndex = 2
- Top = 2280
- Width = 1935
- End
- Begin SSCommand Command3D1
- Caption = "NEW PATIENT"
- Font3D = 0 'None
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 975
- Index = 0
- Left = 2280
- Picture = IDFORM.FRX:2F0C
- TabIndex = 1
- Top = 2280
- Width = 1935
- End
- Begin AniPushButton AniButton3
- BackColor = &H00C0C0C0&
- Cycle = 1 'By frame
- Height = 480
- Index = 2
- Left = 7080
- PictDrawMode = 1 'Autosize control
- Picture = IDFORM.FRX:320E
- TabIndex = 10
- Top = 1080
- Width = 480
- End
- Begin AniPushButton AniButton3
- BackColor = &H00C0C0C0&
- Cycle = 1 'By frame
- Height = 855
- Index = 1
- Left = 8040
- PictDrawMode = 2 'Stretch to fit
- Picture = IDFORM.FRX:37F0
- Speed = 162
- TabIndex = 8
- Top = 960
- Width = 855
- End
- Begin VBedit BEdit1
- CellHeight = 480
- CellWidth = 360
- CharSet = 16412
- CombBaseLine = 480
- CombColor = &H00000000&
- CombEndHeight = 390
- CombEndMarker = 0 'False
- CombHeight = 230
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Serif"
- FontSize = 24
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 855
- InflateBottom = 1
- InflateLeft = 2
- InflateRight = 2
- InflateTop = 1
- Left = 2640
- TabIndex = 0
- Top = 960
- Version = 268435458
- Width = 4095
- End
- Begin AniPushButton AniButton3
- BackColor = &H00C0C0C0&
- Cycle = 1 'By frame
- Height = 855
- Index = 0
- Left = 720
- PictDrawMode = 2 'Stretch to fit
- Picture = IDFORM.FRX:3DD2
- Speed = 162
- TabIndex = 7
- Top = 960
- Width = 855
- End
- End
- Dim flashflag As Integer
- Sub AniButton1_Click (INDEX As Integer)
- If smartform(1) Then
- Select Case INDEX
- Case 1
- admit.picture1.Cls
- admit.picture1.autoredraw = -1
- admit.picture1.Scale (0, 0)-(3, 4)
- admit.picture1.currentx = .8
- admit.picture1.currenty = 1.2
- admit.picture1.Print "CLICK"
- admit.picture1.currentx = 1
- admit.picture1.currenty = 2
- admit.picture1.Print " TO"
- admit.picture1.currentx = .6
- admit.picture1.currenty = 2.8
- admit.picture1.Print "RETURN"
- admit.Show
- idform.Hide
- timer1.enabled = 0
-
- Case 0
- assess1.Show
- idform.Hide
- timer1.enabled = 0
- End Select
- formcheck "Identification Form"
- End If
- End Sub
- Sub AniButton2_Click ()
- If smartform(1) Then
- menumode idform
- timer1.enabled = 0
- formcheck "Identification Form"
- End If
- End Sub
- Sub AniButton3_Click (INDEX As Integer)
- If INDEX = 0 Then
- timer1.enabled = 0
- COMMAND3D1(0).CAPTION = "NEW PATIENT"
- End If
- If INDEX = 1 Then
- timer1.enabled = 0
- COMMAND3D1(1).CAPTION = "ENTER ID"
- End If
- If INDEX = 2 Then
- Select Case anibutton3(2).VALUE
- Case 2
- editswap bedit1, hedit1, 1
- bedit1.visible = 0
- hedit1.visible = -1
- hedit1.enabled = 0
- Case 1
- editswap bedit1, hedit1, 2
- bedit1.visible = -1
- hedit1.visible = 0
- hedit1.enabled = -1
- End Select
- End If
- End Sub
- Sub BEdit1_Update ()
- 'bedit1.text = "###-##-####"
- If bedit1.selstart = 10 Then
- If Mid$(bedit1.text, 4, 1) <> "-" Or Mid$(bedit1.text, 7, 1) <> "-" Then
- For n = 1 To Len(bedit1.text)
- If n = 4 Or n = 7 Then
- a$ = a$ + "-"
- 'a$ = a$ + Mid$(bedit1.text, n, 1)
- Else
- a$ = a$ + Mid$(bedit1.text, n, 1)
- End If
- Next n
- bedit1.text = a$
- End If
- bedit1.selstart = 11
- End If
- End Sub
- Sub Check3D1_Click (VALUE As Integer)
- If CHECK3D1.VALUE Then
- TYPECHECK = -1
- Else
- TYPECHECK = 0
- End If
- End Sub
- Sub Command3D1_Click (INDEX As Integer)
- Select Case INDEX
- Case 1
- a$ = bedit1.text
- curpatID = validID(a$)
- If curpatID Then
- If COMMAND3D1(1).CAPTION = "ENTER ID" Then COMMAND3D1(1).CAPTION = "KNOWN"
- newflag = 0
- ID$ = Left$(LTrim$(Str$(curpatID)), 4) + "body"
- inkID$ = Left$(LTrim$(Str$(curpatID)), 4) + "ink"
- If MsgBox(" Retrieve Patient Data?", 4, "IDENTIFICATION FORM") = 6 Then
- restoredata curpatID
- restored = -1
- Else
- restored = 0
- End If
- flashflag = 1
- timer1.interval = 679
- timer1.enabled = -1
- editswap bedit1, hedit1, 1
- bedit1.visible = 0
- hedit1.visible = -1
- hedit1.enabled = 0
- anibutton3(2).VALUE = 2
- temprecord.patid = curpatID
- Else MsgBox "Please Enter A Valid Patient ID Number", 48, "Retrieve Patient Record"
- End If
- '******************************************
- Case 0 'new patient
- a$ = bedit1.text
- For n = 1 To Len(a$)
- If Mid$(a$, n, 1) <> "-" Then
- c$ = c$ + Mid$(a$, n, 1)
- End If
- Next
- curpatID = Val(c$)
- COMMAND3D1(0).CAPTION = "NEW ENTRY"
- newflag = -1
- ID$ = Left$(LTrim$(Str$(curpatID)), 4) + "body"
- inkID$ = Left$(LTrim$(Str$(curpatID)), 4) + "ink"
- timer1.interval = 679
- flashflag = 0
- editswap bedit1, hedit1, 1
- bedit1.visible = 0
- hedit1.visible = -1
- hedit1.enabled = 0
- anibutton3(2).VALUE = 2
- temprecord.patid = curpatID
- If timer1.enabled Then
- timer1.enabled = 0
- Else timer1.enabled = -1
- End If
- End Select
- End Sub
- Sub Form_Load ()
- bedit1.text = " - - "
- idform.Move 0, 0, SCREEN.width, SCREEN.height
- anibutton1(1).Move .1 * anibutton1(1).width, idform.height - 1.1 * anibutton1(0).height
- anibutton2.Move (idform.width - anibutton2.width) / 2, idform.height - 1.1 * anibutton2.height
- anibutton1(0).Move idform.width - 1.1 * anibutton1(0).width, idform.height - 1.1 * anibutton1(1).height
- idform.Scale (0, 0)-(4, 6)
- PANEL3D1.Move 0, 0, 4, 5.5
- 'command3d1(0).Move panel3d1.width \ 2 - command3d1(0).width, panel3d1.height \ 6
- 'command3d1(1).Move panel3d1.width \ 2 + command3d1(0).width, panel3d1.height \ 6
- 'command3d1(2).Move panel3d1.width \ 2 - command3d1(0).width, 4 * panel3d1.height \ 6
- 'command3d1(3).Move panel3d1.width \ 2 + command3d1(0).width, 4 * panel3d1.height \ 6
- hedit1.Move bedit1.left, bedit1.top, bedit1.width * 1.07, bedit1.height
- flashflag = 0
- timer2.interval = 10
- timer2.enabled = -1
- timer1.interval = 679
- timer1.enabled = -1
- End Sub
- Sub Option3D1_Click (INDEX As Integer, VALUE As Integer)
- Select Case INDEX
- Case 1
- 'FEMME
- temprecord.sex = -1
- timer1.enabled = 0
- ANIBUTTON4.VALUE = 3
- Case 0
- 'HOMME
- temprecord.sex = 1
- timer1.enabled = 0
- ANIBUTTON4.VALUE = 2
- End Select
- End Sub
- Sub Timer1_Timer ()
- Select Case flashflag
- Case 0
- If anibutton3(flashflag).VALUE = 1 Then
- anibutton3(flashflag).VALUE = 2
- anibutton3(flashflag).VALUE = 1
- End If
- Case 1
- If anibutton3(flashflag).VALUE = 1 Then
- anibutton3(flashflag).VALUE = 2
- anibutton3(flashflag).VALUE = 1
- End If
- End Select
- End Sub
- Sub Timer2_Timer ()
- Load assess1
- SCREEN.MOUSEPOINTER = 0
- timer2.enabled = 0
- End Sub
-